<?php

class db_init {

    var $server;
    var $username;
    var $passworddb;
    var $database;

    function db_init() {
        $this->server = "localhost";
        $this->username = "root";
        $this->database = "app_karaoke";
        $this->passworddb = '';
        
    }

    function getDeverloperServer() {
        $this->server = "127.0.0.1";
        $this->username = "root";
        $this->database = "video_24h";
        $this->passworddb = '';
    }

    function debug_query($query, $file_line_query) {
        if (@$_SERVER["SERVER_ADDR"] == "127.0.0.1") {
            save_logs("query.log", $file_line_query . " \n " . $query);
        }
    }

    function __destruct() {
        unset($this->server);
        unset($this->username);
        unset($this->passworddb);
        unset($this->database);
    }

}